package org.nightrunner.d3.service;

import java.io.IOException;
import java.util.List;

import org.nightrunner.d3.entity.Category;
import org.nightrunner.d3.entity.Equipment;
import org.nightrunner.d3.model.IPaginationInfo;
import org.nightrunner.d3.model.PaginationModel;

/**
 * Search Service interface
 * 
 * @author haiyang.chen
 * @date 2012-5-15
 * @version 1.0
 */
public interface ISearchService {

	public List<Equipment> searchEquipment(List<String> keywords)
			throws Exception;

	public List<Equipment> searchEquipments(String q) throws Exception;

	PaginationModel<List<Equipment>> searchEquipments(List<String> keywords,
			IPaginationInfo paginationInfo) throws Exception;

	public List<Category> searchCategorys(List<String> keywords)
			throws IOException;

	public List<Category> searchCategorys(String keywords) throws IOException;
}
